home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / comms_w / hqfax32.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-04-22  |  4KB  |  116 lines

  1. Echo off
  2. REM *********************************************************************/
  3. REM                                                                     */
  4. REM   SYSTEM       : HQ-FAX                                             */
  5. REM   COPYRIGHT    : (c) 1995 HTF CONSULTING                            */
  6. REM                                                                     */
  7. REM *********************************************************************/
  8. REM                                                                     */
  9. REM   BAT file name: Install.bat                                        */
  10. REM   DESCRIPTION  : This batch file drives the Installation prodecure  */
  11. REM                  for the HQ-FAX product                             */
  12. REM                  Install Batch file for One-Step High Quality FAX   */
  13. REM                                                                     */
  14. REM *********************************************************************/
  15. REM
  16. CLS
  17. Echo *************************************************************************
  18. Echo * Welcome to the HQ-FAX Installation Procedure                          *
  19. Echo * Copyright (C) 1995 HTF Consulting                                     *
  20. Echo *************************************************************************
  21. Echo *
  22. Echo To install HQ-FAX into the directory C:\HQFAX, just enter "Install"
  23. Echo To install HQ-FAX into any other directory,  enter "Install X:\dirname"
  24. Echo Where 'X' is the drive name ( C, D, E, etc.) & "dirname" is the directory.
  25. Echo Example(1): "INSTALL "
  26. Echo Example(2): "INSTALL C:\FAXWORK"
  27. Echo Example(3): "INSTALL D:\HQFAX"
  28. Echo *
  29. if "%1" == "" goto verify
  30.  
  31. Echo WARNING!!! If you have entered a directory name without a drive letter
  32. Echo or a drive letter without a directory name the installation will fail.
  33. Echo Compare your input to the examples above.
  34. Echo YOUR INPUT WAS:  "%0 %1"
  35. Echo *
  36.  
  37. :verify
  38. if     "%1" == "" Echo Will install HQ-FAX into the drive:directory  C:\HQFAX
  39. if not "%1" == "" Echo Will install HQ-FAX into the drive:directory  %1
  40. Echo *
  41. Echo Enter [CNTL_C] to abort, OR...
  42. Pause
  43.  
  44. if exist c:\hqfax.bat goto previnstl
  45. if     "%1" == "" if exist C:\HQFAX\*.* goto previnstl
  46. if not "%1" == "" if exist %1\*.* goto previnstl
  47. goto install
  48.  
  49. :previnstl
  50. CLS
  51. Echo ATTENTION! ATTENTION! ATENTION!
  52. Echo A previous installation of HQ-FAX is detected.  You must completely remove
  53. Echo HQ-FAX before re-installing. Contact HTF Consulting (510) 521-1689
  54. goto Abort
  55.  
  56. :install
  57. CLS
  58. Echo When the installation is complete the screen will clear and informative
  59. Echo messages will appear!
  60. Echo *
  61. Echo Copying files .....
  62.  
  63. if not "%1" == "" goto Userdir
  64.  
  65. mkdir c:\HQFAX
  66. copy *.* c:\HQFAX
  67. Setpath.exe HQFAX HQFAX
  68. erase c:\hqfax\setpath.exe
  69. erase c:\hqfax\install.bat
  70. erase c:\hqfax\hqfinfo.bat
  71. goto Quit
  72.  
  73. :Userdir
  74. mkdir %1
  75. copy *.* %1
  76. Setpath.exe HQFAX %1
  77. erase %1\setpath.exe
  78. erase %1\install.bat
  79. erase %1\hqfinfo.bat
  80.  
  81. :Quit
  82. CLS
  83. Call HQFinfo.bat
  84. Echo Print this screen if you like, and then ...
  85. pause
  86. CLS
  87. Echo ****************************************************************************
  88. Echo ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION!
  89. Echo ****************************************************************************
  90. Echo *
  91. if     "%1" == "" Echo HQ-FAX is installed into the directory  C:\HQFAX.
  92. if not "%1" == "" Echo HQ-FAX is installed into the directory  %1.
  93. Echo *
  94. Echo First time users will need to identify their FAX modem software or class of
  95. Echo FAX modem in the output format field of the HQ-FAX conversion screen.
  96. Echo *
  97. Echo Registered users will need to enter their Registration Key into the
  98. Echo Registration key field in the HQ-FAX Conversion screen.
  99. Echo *
  100. Echo You may execute HQ-FAX from any directory if the root directory (C:\;) is in
  101. Echo your current PATH. Otherwise you may execute HQFAX from the root directory.
  102. Echo Your current PATH is:
  103. PATH
  104. PATH C:\;%path%
  105. Echo *
  106. Echo Your current PATH has been modified to include the root directory (C:\;).
  107. Echo To start HQ-FAX, just enter "HQFAX" at the DOS prompt.
  108. Echo Monochrome screen users must enter "HQFAX /mono" .
  109. Echo Happy FAXing!
  110.  
  111. :Abort
  112. :quit
  113. C:
  114. chdir c:\
  115. Echo on
  116.